Method and system for representing Web service activity through a user interface

ABSTRACT

A method and apparatus for representing Web service activity utilizes a user interface. Components of the user interface present a changing graphical feature based on an activity indicator of the associated web service. The components may vary color or text indicators. Activity indicators may include loading of the Web service object or other states and activities of interest.

FIELD OF THE INVENTION

[0001] The present disclosure relates in general to graphical user interfaces used to track usage of Web service objects.

BACKGROUND

[0002] An important technology growing out of Internet usage has been the use of Web services. Web services are network-based (particularly Internet-based) applications that perform a specific task and conform to a specific technical format. Web services are represented by a stack of emerging standards that describe a service-oriented, component-based application architecture, collectively providing a distributed computing paradigm having a particular focus on delivering services across the Internet.

[0003] Generally, Web services are implemented as self-contained modular applications that can be published in a ready-to-use format, located, and invoked across the World Wide Web. When a Web service is deployed, other applications and Web services can locate and invoke the deployed service. They can perform a variety of functions, ranging from simple requests to complicated business processes.

[0004] Traditionally, Web pages were static files that were downloaded to a user's browser, and the browser interpreted the page for display, as well as handling user input to objects such as forms or buttons. Web services extend the Web's capability to include dynamic content and user interaction. Web services are typically configured to use standard Web protocols such as Hypertext Transfer Protocol (HTTP), Hypertext Markup Language (HTML), Extensible Markup Language (XML) and Simplified Object Access Protocol (SOAP). HTTP, HTML, and XML are typically used to handle user input and output of Web pages and other user data. SOAP is typically used for request and reply messages between Web services.

[0005] The use of Web services has made the browser a much more powerful tool. Far from being simple static Web pages, Web services now can handle tasks as complex as any computer program, yet can be accessed and run anywhere due to the ubiquity of browsers and the Internet.

[0006] The complex behaviors provided by Web services require more than standard HTML layout skills to implement. The task of writing and debugging Web services falls to computer programmers. Programmers have the ability to design Web service objects, since Web services objects use instructions like traditional programming languages. However, unlike traditional computer programs, Web services are designed primarily for easy interaction with other Web services.

[0007] Although traditional programs can be designed to interact with other programs, such interaction is usually limited. Most computer programs can handle simple interactions such as cut and paste, but full interaction such as remote method invocation between disparate programs is the exception rather than the rule.

[0008] In contrast, Web services are designed for interaction. This interactivity has been enhanced by the fact they are built upon standard, open, widely adopted, and well understood protocols. It easier than ever to deploy independently developed Web services that interact naturally. However, this high level of interaction makes debugging Web services more difficult. When developing a unified application, standard tools such as debuggers can be used to track program execution. However, Web services may involve multiple programs interacting on various computers anywhere in the world. These interactions may be hard to predict and track during run-time, especially since some public Web services may not be accessible by developers at a troubleshooting level.

SUMMARY

[0009] Methods and apparatus are disclosed for representing activity of Web service objects. One disclosed method includes computer-implemented tracking of activity indicators for the Web service objects. The activity indicators are communicated to a graphical user interface, and the activity indicators are displayed as variable graphical features of components of the graphical user interface. The components are arranged to indicate an interrelationship between the Web service objects.

BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The invention is described in connection with the embodiments illustrated in the following diagrams.

[0011]FIG. 1 is a system diagram showing implementation of a graphical user interface according to embodiments of the present invention;

[0012]FIG. 2 is an example graphical user interface according to embodiments of the present invention;

[0013]FIG. 3 is a Universal Modeling Language (UML) diagram of example graphical user interface components according to embodiments of the present invention;

[0014]FIG. 4 is a UML diagram of an example Web service object interface according to embodiments of the present invention;

[0015]FIG. 5 is a UML sequence diagram showing example user interface interactions with a Web service object according to embodiments of the present invention; and

[0016]FIG. 6 is a diagram of a system in which a graphical user interface may be deployed according to embodiments of the present invention.

DETAILED DESCRIPTION

[0017] In the following description of various embodiments, reference is made to the accompanying drawings which form a part hereof, and in which is shown by way of illustration various example manners in which the invention may be practiced. It is to be understood that other embodiments may be utilized, as structural and operational changes may be made without departing from the scope of the present invention.

[0018] In general, the present disclosure relates to a method and apparatus for determining activity of Web service objects. A graphical user interface (GUI) is used to represent an arrangement of Web service objects as graphical components. A visual property of the components is varied to indicate an activity parameter of the object. The GUI allows the real-time display of object activity and interaction between various objects. The real-time display of object activity advantageously allows a user to discover bottlenecks by showing those services that are “stuck” at a high level of activity, or perhaps not responding at all.

[0019] Web Services are network-based (particularly Internet-based) applications. Often, Web services use self-contained, modular applications sometimes referred to as Web service objects. These objects can be invoked across the World Wide Web by using standard protocols of the Web.

[0020] Web services are accessed via ubiquitous Web protocols and data formats, such as Hypertext Transfer Protocol (HTTP) and Extensible Markup Language (XML). Thus, at present, the basic Web service platform is XML plus HTTP. XML is a text-based markup language that is currently used extensively for data interchange on the Web.

[0021] As with HTML, XML data is identified using tags, which are collectively known as “markup.” XML tags identify the data, and act as a field name in the program. XML is a language that allows complex interactions between clients and services, as well as between components of a composite service, to be expressed.

[0022] HTTP is an application protocol, and more particularly is a set of rules for exchanging files (text, graphic images, sound, video, and other multimedia files) on a network such as the World Wide Web. While the examples set forth herein are generally described in connection with XML and HTTP, it should be recognized that this is for illustrative purposes, and current and future types of protocols and data formats may also be employed.

[0023] More specifically, Web services represent a collection of several related technologies, and involve connections between at least two applications, such as a remote procedure call (RPC), in which queries and responses are exchanged in XML over HTTP. Web service technologies may be defined in terms of various technology layers. The core layers include a transport layer, such as TCP/IP or HTTP as previously described, in which XML messages may be communicated.

[0024] An XML messaging layer can be used for invoking RPCs across the Web. Two such protocols, Simple Object Access Protocol (SOAP) and XML-RPC, represent a core layer of Web services that provide this functionality. SOAP and XML-RPC are protocol specifications that define a uniform manner of passing XML-encoded data, as well as defining a manner to perform RPC using HTTP as the underlying communication protocol. XML-RPC is generally associated with HTTP for transport, although SOAP can use other underlying protocols, such as Simple Mail Transfer Protocol (SMTP) to invoke RPCs.

[0025] Although Web service objects generally communicate using a standard protocol such as SOAP or XML-PPC, the objects themselves can be created using any programming technology known in the art. Web service objects can be compiled binaries (e.g. C/C++, Ada, Pascal), scripts (e.g. Perl, Python) or interpreted objects (e.g. Java™, Visual Basic®). Two popular forms of Web objects are JavaServer Pages™ (JSP) and Enterprise Java Beans™(EJB).

[0026] Java Server Pages technology is an extension of the Java Servlet technology. Servlets are platform-independent Java server-side modules that can be used to extend the capabilities of a Web server. Servlets are platform-independent Java application components that can be downloaded on demand. JavaServer Pages technology separates the user interface from Servlet-based content generation, enabling designers to change the overall page layout without altering the underlying dynamic content.

[0027] JavaServer Pages technology uses XML-like tags that encapsulate the logic that generates the content for the page. Any and all formatting (HTML or XML) tags are passed directly back to the response page. Additionally, the application logic can reside in server-based resources (such as JavaBeans™ component architecture) that the page accesses with these tags.

[0028] The JavaBeans specification defines a set of standard component software APIs for the Java platform. JavaBeans (including those used by EJB) are self-contained, reusable software units that can be composed to expose their features (for example, public methods and events) to software tools for manipulation. The EJB model defines an architecture for deploying JavaBeans to enhance Web services in an enterprise environment.

[0029] Although various aspects of the present invention may be described in relation to JSP and EJB, it is appreciated that concepts of the present invention are applicable to any Web service technology. Therefore, description of an interface with JSP and EJB are provided for purposes of illustration, and not of limitation.

[0030] Referring now to FIG. 1, a representative system employing concepts of the present invention is illustrated. A graphical user interface (GUI) 100 is displayed on a computing system 102. The computing system 102 illustrated is a personal computer, although any fixed or mobile computing device may be used to display a GUI 100.

[0031] The GUI 100 incorporates one or more graphical components 104 that are used to represent a state of Web service objects 106. The Web service objects 106 are employed on Web servers 108, 110 connected to a network 112. The network 112 illustrated is a wide area network (WAN), such as the Internet. It is appreciated that Web servers 108, 110, and Web service objects 106 can be utilized on any type of networks, such as Local Area Networks (LAN), wireless networks, point-to-point connections, etc.

[0032] In general, a client system 114 uses a browser to access a Web server 108, 110. The servers 108, 110 may fulfill client requests using one or more of the Web service objects 106. The Web service objects 106 can perform tasks such as accessing a database 116 and creating dynamic Web pages for the client system 114.

[0033] The Web service objects 106 may often interact with other Web services objects 106 as indicated. These interactions may occur with Web service objects 106 on the same server or different servers 108, 110. A GUI 100 according an embodiment of to the present invention can advantageously represent these Web service interactions for a user of the computing system 102.

[0034] Although Web service objects 106 are often created in object oriented languages such as Java, it is appreciated a Web service object 106 can be any Web service regardless of whether the underlying technology is actually object oriented. Further, although RPC mechanisms such as SOAP are becoming the standardized protocol for web services, other existing web technologies can be adapted for use as web services. Therefore, any technology such as Common Gateway Interface (CGI) scripts, Active Server Pages (ASP), Macromedia Flash or other server-side technologies can be abstracted as Web service objects 106 for purposes of implementing embodiments of the present invention.

[0035] Typically, when developing Web services, the various Web service objects 106 may be invoked by a user request or by other Web service objects 106. Therefore, the interactive and distributive nature of Web service objects 106 may be difficult to view for a Web services developer. The GUT 100 allows a developer (or other interested person such as a Web site administrator) to see interactions by representing Web service object activity and states in the components 104 of the GUI 100. In general, the Web service objects 106 can send activity information to the GUI 100, as indicated by the connections 118.

[0036] The connections 118 may be separate connections to either the GUI 100 or the components 104 of the GUI 100. Alternatively, there may be a single connection between the servers 108, 110 and the computing system 102, and all messages are sent through a communication mechanism (e.g. across machines: sockets, any messaging service or protocol, shared network files; on the same machine: shared memory, pipes, Windows events). The connections 1118 can be point-to-point or provided by the WAN 112.

[0037] There is typically a one-to-one mapping between the Web service objects 106 and the GUI components 104, so that the user can track a Web service object 106 of interest by watching the associated component 104. However, other mappings may be desirable, such as representing a group of Web service objects 106 by a single component 104.

[0038] The components 104 can be used to represent various activity indicators of the Web service objects 106. For example, the components 104 can change graphical features such as color, text, text color, size, outline thickness, flashing frequency variation, audio tonal variation, audio loudness, etc. The components can also advantageously change a color intensity based on the loading of associated Web service objects 106.

[0039] The components 104 may be displayed with a pre-defined color coding scheme to indicate various types (or other aspects) of web service objects. By varying color intensity (as opposed to the color itself) the color coding can remain while still communicating an activity indicator. Color intensity is varied by changing RGB values of a component 104. For example, a pale blue might be rendered by setting a component's 32-bit RGB value to (RGB: 234, 234, 255). By equally decreasing the red and green portions of the RGB setting, the component 104 can be rendered in a darker blue, such as (RGB: 126, 126, 255). Note that pure blue is (RGB: 0,0,255). So the darker colors can be used to indicate an activity measure such as Web service loading. Many measures of Web service loading may be devised. In one example, the number of requests being processed, either concurrently or serially, can be used as a measure of loading. Concurrent requests are typically handled by separate threads of execution within the object 106, and loading of concurrent requests can be measure by counting the number of threads. Serial requests can be handled by a single thread of execution, in some cases utilizing some sort of a queue. A usage indicator for serial requests might be the queue size or number of requests per unit of time.

[0040] Other object information besides loading may be communicated by Web service objects 106 in a system according to certain embodiments of the present invention. Other data of interest to developers and users might be transaction data rate, debug text, average response time, transaction latency, etc. In general, the term “activity” is used to describe any state or activity indicators of the Web service object 106.

[0041] The GUI components 104 may be configured to display any number of Web service activity measures, either singly or in combination. For example, the components 104 may be configured to only display color variations based on loading. However, when the user selects a component 104 with a cursor, a text readout may appear that shows scrolling debug text from the associated Web service object 106.

[0042] Turning now to FIG. 2, an example GUI 200 is shown which can be used to represent various states of Web service objects. The GUI 200 represents a shopper service that can be used to compare various phone service rates and manage user accounts. The Service Shopper Client 202 represents a collection of JSPs that provide content to users of a Web site. The Service Shopper Web Service 204 includes various EJBs that can connect to other Web services such as the Billing Web Service 206.

[0043] The various components shown in the GUI 200, such as the Login JSP 210, may include variable graphical features to indicate some state of the underlying Web service object. As previously described, the background color and/or color intensity of the Login JSP component 210 may be varied in accordance with Web service activity. A text indicator 220 may also indicate some activity measure.

[0044]FIG. 2 shows connections 208 that can represent SOAP messages or other RPC that may be invoked on Web service objects. The connections 208 may also be implemented as components that present variable graphical features depending on state. For example, the connections 208 could change color and or line thickness whenever the associated inter-object RPCs are being invoked.

[0045] The arrangement and behavior of the GUI components can provide dynamic indications of Web service object interactions and interrelationships. A scenario that illustrates this interaction involves the Login JSP 210, the Customer EJB 212, Billing Web Service 206, and the Billing Info JSP 214.

[0046] In this scenario, the Login JSP 210 presents an HTML formatted page with inputs for a username and password. The username and password from the Login JSP 210 is used by a Customer EJB 212 to connect to the Billing Web Service 206 to extract account information. The results may be returned by the Customer EJB 212 and shown in a Billing Info JSP 214, where the customer's billing data can be viewed.

[0047] In the transaction described above, the user can visualize component interactions in the GUI 200 at each step of the transaction. This can be useful to understand the system and to debug the system. For example, if the login failed, the user could see that a component such as the Billing Web Service 206 failed to indicate any activity. The GUI 200 therefore provides useful troubleshooting information that would otherwise require tracing each step of the transaction, possibly over different servers and using different debugging tools. The GUI indicators can also be useful during testing and implementation to determine relative component workload for system characterization and optimization.

[0048] Although the transactions may occur too quickly to easily visualize on the GUI 200, other features may be utilized to enhance visualization. For example, the GUI 200 could be part of an application that records the Web service object data to storage. This stored data could be later used to step through the transactions much like a debugger can step through lines of code.

[0049] Turning now to FIG. 3, various implementation details of GUI components are shown. FIG. 3 includes a Universal Modeling Language (UML) diagram of various components of a GUI implementation. The high level GUI is represented by the ArchUI class 302. ArchUI 302 handles instantiation and deletion of component within the ArchUI 302 drawing area. In this example, the ArchUI class 302 also handles connections to the various Web services, as indicated by the RequestConnection( ) method 304. RequestConnection( ) 304 initiates a network connection with a Web service object having the appropriate interface.

[0050] The ArchUI class 302 contains various components that inherit from the ArchComponent( ) base class 306. ArchComponent( ) 306 is a general GUI component template that can be used to represent any aspect of Web service objects. The ArchComponent template 306 includes the Update( ) 308 method used to vary a graphical feature of the component.

[0051] As seen in FIG. 3, two classes inherit from ArchComponent 306, ArchShape 310 and ArchConnector 312. ArchShape 310 presents a box with text as seen with Customer EJB 212 in FIG. 2, for example. The ArchShape 310 may include static text such as the Web service name as well as dynamically changing text, such as the numeral 220 indicated in FIG. 2. The ArchConnector 312 may be drawn as a line connecting two or more ArchShape instances 310, such as the connectors 208 seen in FIG. 2.

[0052]FIG. 4 shows an example server side implementation of a WebServiceObject class 402 that is designed to communicate with a GUI according to embodiments of the present invention. In this example, the WebServiceObject 402 arranged to communicate loading by tracking the number of concurrent service requests.

[0053] The WebServiceObject 402 includes a ServiceThreadManager 404 to handle incoming service requests and spawn an instantiation of ServiceThread 406 using CreateThread( ) 408 to handle each incoming request. Each ServiceThread object 406 can handle an individual request of the WebServiceObject 402.

[0054] The ServiceThreadManager 404 keeps track of the number of ServiceThread objects 406 currently in use. When a ServiceThread object 406 is created or destroyed, the ServiceThreadManager 404 can update the GUI (such as the ArchUI 302 of FIG. 3) by calling the UpdateThreadCount( ) method 410.

[0055]FIG. 5 shows an example interaction of the objects shown in FIG. 4. The scenario of FIG. 5 includes interactions between the Web 502 and instantiations of the ServiceThreadManager 504 on the server side and ArchUI 506 on the GUI side. Both ServiceThreadManager 504 and ArchUI 506 are shown as singleton classes, where the Instance( ) method returns a reference to a single, static instantiation of the class.

[0056] When starting, the ArchUI 506 sends a RequestConnection( ) 510 to the ServiceThreadManager 504 to request a connection. The type of connection can be any form of network messaging or IPC arrangement. If the Web service objects and GUI re co-located on the same computer, IPC mechanisms such as shared memory or pipes may be used. If the Web service objects and GUI are located on separate computers, a networking connection is used for communications. Network connections can use TCP/IP socket, UDP/IP datagrams, or any other form of data transfer. For the widest implementation, a fairly simple and standard method of transferring data from Web service object to the GUI is advantageous.

[0057] The data transferred between the ArchUI 506 and the ServiceThreadManager 504 can be any text or binary format. For example, the data may XML formatted text to include the easiest adoption across computing platforms and protocols. The RequestConnection( ) 510 method may be a stateless transfer such as an HTTP session or may require a connection state be maintained. Typically, the success of the request is returned 512 to the ArchUI 506 in response to the RequestConnection( ) 510 call.

[0058] The return 512 from the ServiceThreadManager 504 may also include some state data, such as the Web service object's name and the current loading. The ArchUI 506 can use this return data to instantiate 514 an ArchShape object 516. The ArchUI 506 may also instantiate ArchConnector objects (not shown) to show connections to and from the ArchShape object 516.

[0059] When the Web service object receives a service request 520, the ServiceThreadManager 504 instantiates 522 a ServiceThread object 524 to handle the request. The ServiceThread object 524 is a separate thread of execution which responds 526 to the service request 520. The ServiceThreadManager 504 updates usage 528 to the ArchUI 506, which in turn locates the ArchShape 516 associated with this Web service objects and calls the ArchShape object's Update( ) method 530. The ArchShape object 516 internally alters its graphical features with the UpdateProperty( ) method 531, such as changing a background color and/or text.

[0060] When the transaction handled by the ServiceThread 524 is complete 532, the ServiceThreadManager 504 detects this 534 and again updates usage 536 to the ArchUI 506. As before, the ArchUI 506 and ArchShape 516 handle the update 538, 540, this time showing a reduction in the load indicated by the completion of the ServiceThread 524.

[0061] While the previous description provides one example of communications between a GUI and a Web service, it is appreciated that many alternate implementations are possible. For example, the GUI could be configured for listening for incoming connections, and the Web service objects would initiate connections with the GUI. Various different server side implementations could be utilized, all conforming to a common data/message transfer protocol compatible with the GUI.

[0062]FIG. 6 shows a system 600 utilizing concepts of the present invention. The system includes a computing apparatus 602 with a processor 604 and coupled to some form of data storage. The data storage may include volatile memory such as RAM 606. Other devices that the apparatus 602 may use for data storage and retrieval include a ROM 608, disk drive 610, CD-ROM 612, and diskette 614. A display 616 and user input interface 618 are attached to the computing apparatus 602 to allow data input and display of the GUI 621. The computing apparatus 602 includes a network interface 620 that allows the apparatus to communicate with Web servers 624, 630 and other computing devices across a network 622.

[0063] In one embodiment of the invention, the computing apparatus 602 connects to Web objects running on the Web servers 624, 630. The Web objects may contain interface code for communicating with the GUI 621 to provide a real-time display of Web service object activity. The activity indicators of the Web service objects may also be recorded to persistent storage 614, 610 or a database 626.

[0064] From the description provided herein, those skilled in the art are readily able to combine hardware and/or software created as described with appropriate general purpose or system and/or computer subcomponents embodiments of the invention, and to create a system and/or computer subcomponents for carrying out the method embodiments of the invention. The concepts of the present invention can be implemented in any combination of hardware and software.

[0065] The foregoing description of the example embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention not be limited with this detailed description, but rather the scope of the invention is defined by the claims appended hereto. 

What is claimed is:
 1. A computer-implemented method for representing activity of Web service objects, comprising: tracking activity indicators for the Web service objects; communicating the activity indicators to a graphical user interface; displaying the activity indicators as variable graphical features of components of the graphical user interface, the components arranged to indicate an interrelationship between the Web service objects.
 2. The method of claim 1, wherein displaying the activity indicators as variable graphical features of components of the graphical user interface comprises varying color intensities of the components.
 3. The method of claim 1, wherein displaying the activity indicators as variable graphical features of components of the graphical user interface comprises varying a text of the components.
 4. The method of claim 1, wherein tracking activity indicators for the Web service objects comprises tracking usage indicators of the Web service objects.
 5. The method of claim 4, wherein tracking usage indicators for the Web service objects comprises counting threads of execution of the Web service object.
 6. The method of claim 1, wherein communicating the activity indicators to a graphical user interface comprises: creating data connections between each of the Web service objects and the graphical user interface; and communicating the activity indicators from the Web service objects to the graphical user interface using the data connections.
 7. The method of claim 6, wherein the data connections comprise network connections.
 8. The method of claim 1, wherein displaying the activity indicators further comprises displaying connection components between two or more components, the connection components representing connections between Web service objects.
 9. The method of claim 8, further comprising displaying activity indicators as variable graphical features of the connection components.
 10. The method of claim 1, wherein displaying the activity indicators comprises displaying the activity indicators in real time.
 11. An article of manufacture for representing activity indicators of Web service objects, comprising: a display; a computer-readable medium configured with instructions for causing a computer to perform the steps of: reading the activity indicators of the Web service objects; communicating the activity indicators to a graphical user interface of the display; and displaying the activity indicators as variable graphical features of components of the graphical user interface, the components arranged to indicate an interrelationship between the Web service objects.
 12. The article of manufacture of claim 11, wherein displaying the activity indicators as variable graphical features of components of the graphical user interface comprises varying color intensities of the components.
 13. The article of manufacture of claim 11, wherein displaying the activity indicators as variable graphical features of components of the graphical user interface comprises varying a text of the components.
 14. The article of manufacture of claim 11, wherein reading activity indicators for the Web service objects comprises reading usage indicators of the Web service objects.
 15. The article of manufacture of claim 14, further comprising a network interface, and wherein reading the activity indicators of the Web service objects further comprises reading the activity indicators from the network interface.
 16. The article of manufacture of claim 11, wherein the computer-readable medium is further configured with instructions for causing a computer to displaying connection components between two or more components of the graphical user interface, the connection components representing connections between Web service objects.
 17. The article of manufacture of claim 16, wherein the computer-readable medium is further configured with instructions for causing a computer to display activity indicators as variable graphical features of the connection components.
 18. The article of manufacture of claim 11, wherein the computer-readable medium is further configured with instructions for causing a computer to display the activity indicators in real-time.
 19. An apparatus for representing activity indicators of Web service objects, comprising: means for tracking activity indicators for the Web service objects; means for communicating the activity indicators to a graphical user interface; and means for displaying the activity indicators as variable graphical features of components of the graphical user interface.
 20. The apparatus of claim 20, further comprising means for displaying connection components between two or more components of the graphical user interface, the connection components representing connections between Web service objects.
 21. The apparatus of claim 20, further comprising means for displaying activity indicators as variable graphical features of the connection components. 